<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>main页面</title>
</head>
<body>
<div id="content">

</div>
</body>
<script src="../../js/jquery-3.4.1.js"></script>
<script>

    $(function () {
        console.log("main init");
        loadHtml();
    });

    function loadHtml() {
        $('#content').load("./load.html #main", function (result) {
            $(result).find("script").appendTo('#content');
        });
    }

</script>
</html>